package kr.hkit.powerjava.chapter07.selfstudy;

public class HouseDog extends Dog {
	public HouseDog(String name) {
		this.setName(name);
	}
	
	public void sleep(){
		System.out.print("zzz in the house");
	}
	
	
	public static void main(String[] args) {
		
		HouseDog housedog = new HouseDog ("아롱이");
//		housedog.setName("아롱이");
		System.out.println(housedog.name);
		housedog.sleep();
		
	}
}
